/*
 * @Description: 就是一个编码添加
 */
import axiosBase from "@/api/axios";
export default {
  /**
   * @description: 分页获取列表 *代表必填
   * @param {Object}  *
   */
  queryPageList(params) {
    return axiosBase.post("/v3/40089-process-v2/productReport/queryPageByCondition", {
      page: params.page,
      size: params.size,
      entity: params.entity
    });
  },
  /**
   * @description: 条件获取列表 *代表必填
   * @param {Object}  *
   */
  queryByConditionList(params) {
    return axiosBase.post("/v3/40089-process-v2/productReport/queryPageByCondition", params);
  },
  /**
 * @description: 添加数据项
 * @param {Object}  *
 */
  add(params) {
    return axiosBase.post("/v3/40089-process-v2/productReport/add", params);
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  del(params) {
    return axiosBase.post("/v3/40089-process-v2/productReport/delListByIdList", params);
  },
  /**
 * @description: 单个删除
 * @param {Object}  *
 */
  aloneDel(params) {
    return axiosBase.get(`/v3/40089-process-v2/productReport/delByNo?no=${params}`);
  },
  /**
  * @description: 点击修改
  * @param {Object}  *
  */
  edit(params) {
    return axiosBase.post("/v3/40089-process-v2/productReport/edit", params);
  },
  /**
   * @description: 获取作业人
   * @param {Object}  *
   */
  queryPersonByCondition(params) {
    return axiosBase.post("v3/organization/personDepartmentMapper/queryByCondition", { "organizationNo": sessionStorage.organizationNo });
  },
  /**
 * @description: 添加图片
 * @param {Object}  *
 */
  addPicture(file) {
    return axiosBase.post("/v3/40089-process-v2/picture/add", file)
  },
  // 获取图片路径
  getPictureUrl(params) {
    return axiosBase.get(`/v3/40089-process-v2/picture/queryByNo?no=${params}`);
  }
};
